<?php

/**
 * Description of HomepageCss.
 *
 * @author Ian Clarence <ian.clarence@gmail.com>
 */
final class HomepageCss extends ViewResources {
    
    /**
     * The constructor. 
     */    
    public function __construct() {
        parent::__construct();
    }
    
    /**
     * Loading the CSS rules, and returning as an array.
     * 
     * @param array $viewFields
     * @return array
     */
    protected function resources($viewFields = array()) {
                
        /**
        * Contents.
        */        
        $this->fields[] = ViewCssRule::cssInit(
            'div.homepage_content.panel',
            array(
                'background-color' => GREY1,
                'width' => ViewUtils::px(StylesheetView::PAGE_WIDTH),
                'height' => ViewUtils::px(StylesheetView::MIN_CONTENT_HEIGHT),
                'display' => 'inline',
                'padding' => '20px'
            )
        );                    

        /**
        * Footer.
        */
        $this->fields[] = ViewCssRule::cssInit(
            'div#footer_panel',
            array(
                'background-color' => GREEN3,
                'width' => '100%',
                'height' => ViewUtils::px(StylesheetView::FOOTER_HEIGHT)
            )
        ); 
        $this->fields[] = ViewCssRule::cssInit(
            'div#footer_navigation_article',
            array(
                'height' => '100px'
            )
        );
        
        return $this->fields;
        
    }
    
}